<?PHP
  class checkbox extends Control{
    
    public function getCode(){
      $res = "<input type=\"checkbox\" name=\"".htmlentities($this->name)."\"";
      if($this->value){
        $res .= " checked=\"checked\"";
      }
      $res .= " />";
      return  $res;
    }

  }
?>